import  instance from './request.js'
//首页数据请求

export function GetIndexData(){
    return instance.get('/index/index')
}
//搜索页数据
export function GetSearchData(params){
    return instance.get('/goods/list',
   { params:params})
}
//购物车 
export function getCartList() {
    return instance.get('/cart/index')
}
//购物车的删除
export function getDelete(params){
    return instance.post('/cart/delete',params)
}
//购物车步进器
// export function 
//我的页面 User
//登陆
export function GoLogin(params) {
    return instance(
        {
            method:'post',
            url:'/auth/loginByWeb',
            data:params,
        }
        
    )
}
export function getTopicList(params){
    return instance.get('/topic/list',params)
}




